#ifndef TIANQI_H
#define TIANQI_H

#include <QWidget>
#include<QNetworkReply>
#include <QMessageBox>
#include <QJsonObject>
#include <QJsonArray>
#include <QStandardItemModel>
#include <QDebug>
#include <QNetworkAccessManager>
#include <QJsonDocument>
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlQuery>
#include <QtSql/QSqlError>

namespace Ui {
class tianqi;
}

class tianqi : public QWidget
{
    Q_OBJECT

public:
    explicit tianqi(QWidget *parent = nullptr);
    ~tianqi();

public slots:
    void replyFinished(QNetworkReply *reply);
    void parseJson(QByteArray byteArray);
private slots:
    void on_pushButton_clicked();

private:
    Ui::tianqi *ui;
    QStandardItemModel *pmodel;
    QStringList list;
    QNetworkAccessManager *manager;
    QSqlDatabase db;
};

#endif // TIANQI_H
